package com.shameit.goodqrinfomanager.source.http;




import androidx.databinding.ObservableField;

import com.shameit.goodqrinfomanager.bean.enity.UploadBarCode;
import com.shameit.goodqrinfomanager.bean.litepal.CangKu;
import com.shameit.goodqrinfomanager.bean.litepal.CangWei;
import com.shameit.goodqrinfomanager.bean.litepal.ChanPin;
import com.shameit.goodqrinfomanager.bean.litepal.JingXiaoShang;
import com.shameit.goodqrinfomanager.bean.litepal.LoginUser;

import java.util.ArrayList;
import java.util.List;

import io.reactivex.Observable;
import me.goldze.mvvmhabit.http.BaseResponse;
import okhttp3.RequestBody;

/**
 * Created by goldze on 2019/3/26.
 */
public interface HttpDataSource {

    Observable<BaseResponse<LoginUser>> login(RequestBody requestBody);

    Observable<BaseResponse<List<CangKu>>> syncCangku(RequestBody requestBody);

    Observable<BaseResponse<List<CangWei>>> syncCangwei();

    Observable<BaseResponse<List<JingXiaoShang>>> syncJxs();

    Observable<BaseResponse<List<ChanPin>>> syncChanpin();

    Observable<BaseResponse<Boolean>> uploadBarBind(RequestBody requestBody);

}
